<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<div th:fragment="banner(user)">
    <div class="banner">
        <link rel="stylesheet" href="/static/css/index.css">
        <link rel="stylesheet" href="/static/css/common.css">
        <link rel="stylesheet" href="/static/css/zhu.css">
        <div class="container">
            <ul class="channelList">
                <li><a href="/house/houselist">首页</a></li>
                <li class="" th:if="${user}" ><a href="/house/newhouse" target="_blank">发布房源</a></li>
                <span th:if="${user}">
                    <li class=""><a href="/admin/indexpage" target="_blank" th:if="${user.getUsertype()}>=1">进入后台</a></li>
                </span>


            </ul>
            <div class="banner-right">

                <div class="login" id="userInfoContainer">
                    <i></i>
                    <span th:if="${user}">
                        <a th:text="${user.getAdmin()}" id="userNameContainer" href="/user/mine" rel="nofollow">111</a>
                        <a href="/logout">退出</a>
                        <span id="pushNewsListContainer"></span>
                    </span>
                    <span th:if="!${user}">
                        <a href="/login">登录</a>
                        <a href="/register">注册</a>
                    </span>

                </div>

            </div>

        </div>
    </div>
</div>

</html>
